package User;

import BookMethods.BookMethods;

import java.util.Scanner;

import BookMethods.*;

public class NormalUser extends User{

    public BookMethods[] methods= new BookMethods[]{
            new ExitMethod(),
            new ShowMethod(),
            new BorrowMethod(),
            new ReturnMethod(),
    };

    public NormalUser(String nameUser) {
        super(nameUser);
    }

    public BookMethods[] getMethods() {
        return methods;
    }

    public int menu() {
        System.out.println("欢迎" + this.userName + "进入图书管理系统");
        System.out.println("1. 展示图书");
        System.out.println("2. 借阅图书");
        System.out.println("3. 归还图书");
        System.out.println("0. 退出系统");
        System.out.println("**************");

        Scanner scanner = new Scanner(System.in);

        int choice = scanner.nextInt();

        return choice;
    }
}
